package com.guodexian.xiaomi.util;

import redis.clients.jedis.Jedis;

/**
 * 类说明：  <br>
 *
 * @author 南阳德刚<br>
 * 2024-12-30 16:03<br>
 * @since 1.0 <br>
 * 培养IT高薪技术人才的摇篮---北京学佳澳。<br>
 * 点击<a href="http://www.xuejiaao.com/images/qrcode.jpg">学佳澳教育</a>关注公共号,有惊喜(⊙o⊙)<br>
 */
public class RedisUtil {
    private static final String host = "127.0.0.1";
    private static final int port = 6379;
    private static Jedis jedis = null;
    public static Jedis getJedis() {
        if (jedis == null) {
            jedis = new Jedis(host, port);
        }
        return jedis;
    }
}
